<div class="wrapper-md ng-scope">
    <div class="row" novalidate>
   <div class="wrapper-md ng-scope">
    <div class="row" novalidate>
   
     <!--表结构 -->
     <div class="col-md-12">
       <div class="panel panel-info">
             <div class="panel-heading font-bold">公告列表</div>
               <div id="myTabContent" class="tab-content">
                     <div class="tab-pane fade in active" id="home">
                        <div class="row wrapper" >
                            <!-- <div class="col-sm-4">
                                <div class="input-group">
                                    <span class="input-group-addon" id="basic-addon1">公告状态</span>
                                    <input type="text" class="form-control" ng-model="searchform.state" aria-describedby="basic-addon1">
                                </div>
                            </div> -->
                            <div class="col-sm-2">
                                <ui-select ng-model="searchform.state" theme="bootstrap" >
                                    <ui-select-match placeholder="请选择产品类型">
                                        {{$select.selected.name}}
                                    </ui-select-match>
                                    <ui-select-choices repeat="item.value as item in starr | filter: $select.search">
                                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                                    </ui-select-choices>
                                </ui-select>
                            </div>
                            <div class="col-sm-2">
                                <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="pageChanged()">搜索</button>
                            </div>
                        </div>
                            <!--表主体-->
                             <div class="panel-body">
                                <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" 
                                style="display: table; width: 100%;table-layout:fixed;">
                                <thead>
                                    <tr>                         
                                        <th style="width: 20%;text-align:center;vertical-align:middle">公告名称</th>  
                                        <th style="width: 60%;text-align:center;vertical-align:middle">公告内容</th>
                                        <th style="width: 10%;text-align:center;vertical-align:middle">公告状态</th>  
                                        <th style="width: 10%;text-align:center;vertical-align:middle">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="obj in list">                
                                        <td style="text-align:center;vertical-align:middle">{{obj.name}}</td>
                                        <td style="text-align:center;vertical-align:middle">{{obj.content}}</td>
                                        <td style="text-align:center;vertical-align:middle">{{obj.state_name}}</td>
                                        <td style="text-align:center;vertical-align:middle">
                                            <button class="btn btn-info btn-xs" ng-click="information(obj)" ng-show="obj.state =='1' || obj.state =='2'">详情</button>
                                            <button class="btn btn-info btn-xs" ng-click="edit(obj)" ng-show="obj.state =='0' || obj.state =='3'">编辑</button>
                                            <button class="btn btn-danger btn-xs" ng-click="delete(obj)" ng-show="obj.state =='0' || obj.state =='3'">删除</button>
                                            <button class="btn btn-success btn-xs" ng-click="issue(obj)" ng-show="obj.state =='0' || obj.state =='3'">申请审核</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                             </div>
                              <div class="text-right" style="background-color: white">
                                 <pagination 
                                     total-items="totalItems" 
                                     ng-model="currentPage" 
                                     ng-change="pageChanged()"
                                     previous-text="上一页"
                                     next-text="下一页"
                                     first-text="首页"
                                     last-text="尾页"
                                     max-size="5"
                                     boundary-links="true"
                                     rotate="false"
                                     items-per-page="itemsPerPage"
                                     class="m-t-none m-b"></pagination>
                              </div>
                       </div>
                 </div>
            </div>
       </div>
   </div>
   </div>
   
   
   